<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>打印等腰三角形</title>
	<script type="text/javascript">
		//用*打印等腰三角形(1,3,5,7,9)
		for(var i=1;i<=5;i++){
			for(var k=4;k>=i-1;k--){
				document.write('&nbsp');
			}
			for(var j=1;j<=2*i-1;j++){
				document.write('*');
			}
			document.write('<br/>');
		}
	</script>
</head>
<body>
	
</body>
</html>